/**
 * IndexCtrl.java   2017年4月14日 下午4:46:27 by xuebing 
 *
 * Copyright (c) 2010 - 2017 All rights reserved.
 * 
 */
package com.rongmai.web.ctrl;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/")
public class IndexCtrl {

    @RequestMapping(value="/", method = RequestMethod.GET)
    public ModelAndView index(HttpServletRequest request){
        ModelAndView mv = new ModelAndView();
        mv.setViewName("index");
        return mv;
    }
}
